<#if tableClass.basePackageName?exists>
package ${tableClass.basePackageName}.model;
</#if>
<#if tableClass.importClasses?exists && tableClass.importClasses?has_content>
<#list tableClass.importClasses as item>
import ${item.name};
</#list>
</#if>

import ${tableClass.baseStructPackageName}.dao.Entity;
import ${tableClass.baseStructPackageName}.model.BaseModelImpl;

@Entity(id = "${tableClass.pkFieldName}")
public class ${tableClass.className} extends BaseModelImpl {
	private static final long serialVersionUID = 1L;
<#if tableClass.columns?exists && tableClass.columns?has_content>
<#list tableClass.columns as item>
	private ${item.classFieldType.simpleName} ${item.classFieldName} = null;
</#list>
</#if>
	public ${tableClass.className}(){
	}
	
	public ${tableClass.className}(
<#if tableClass.columns?exists && tableClass.columns?has_content>
<#list tableClass.columns as item>
		${item.classFieldType.simpleName} ${item.classFieldName}<#if item_index + 1 != tableClass.columns?size>,</#if>
</#list>
</#if>
	){
<#if tableClass.columns?exists && tableClass.columns?has_content>
<#list tableClass.columns as item>
		this.${item.classFieldName}=${item.classFieldName};
</#list>
</#if>
	}

<#if tableClass.columns?exists && tableClass.columns?has_content>
<#list tableClass.columns as item>
	public ${item.classFieldType.simpleName} get${item.classFieldName[0]?upper_case + item.classFieldName[1..]}(){
		return ${item.classFieldName};
	}
	public void set${item.classFieldName[0]?upper_case + item.classFieldName[1..]}(${item.classFieldType.simpleName} ${item.classFieldName}){
		this.${item.classFieldName} = ${item.classFieldName};
	}
</#list>
</#if>
}